package com.haiyi.test.demo.vo;

import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement
public class User {

    private Long id;
    private String name;
    private Integer age;

    public List<Address> getList() {
        System.out.println(2221);
        return list;
    }

    public void setList(List<Address> list) {
        this.list = list;
    }

    List<Address> list = new ArrayList<Address>();
    // 省略setter和getter 

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}